<template>
  <el-dialog
    v-el-drag-dialog
    :title="'详情'"
    :visible.sync="visible"
    width="720px"
    @close="reset"
  >

    <div slot="footer" class="dialog-footer">
      <el-button @click="reset">
        关闭
      </el-button>
      <el-button :loading="$loadingPlugin.success " type="primary" @click="success">
        确认
      </el-button>
    </div>
  </el-dialog>
</template>

<script>
  // import { queryEableContractTempWin } from '@/api'
  export default {
    name: 'detail',
    components: {

    },
    props: {

    },
    data() {
      return {
        visible: false,

        query: {

        }
      }
    },
    computed: {

    },
    mounted() {

    },
    methods: {
      async open(param) {
        console.log('param', param)
        // const res = await queryEableContractTempWin({
        //   templateId: param.templateId,
        //   contractId: ''
        // })
        // console.log('模板详情', res)
        return new Promise(resolve => {
          this.resolve = resolve
          this.visible = true
        })
      },
      success() {

      },
      reset() {
        this.visible = false
      }
    }
  }
</script>

<style lang="scss" scoped>

</style>

